package com.xiaoleng.tlgsku.controller;



import com.xiaoleng.tlgsku.service.AttributeValueImgService;
import com.xiaoleng.tlgsku.tools.Record;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sku")
public class AttributeValueImgController {

    @Autowired
    private AttributeValueImgService attributeValueImgService;

    /**
     * 根据keyid查询对应图片
     * @param attributeId
     * @return
     */
    @GetMapping("/findImgBykeyId")
    public Record findImgBykeyId(Integer attributeId){
        return attributeValueImgService.findImgBykeyId(attributeId);
    }
}
